class AdminController < ApplicationController
  def login    
    if request.post?
      if params[:password] == "mom the meatloaf we want it now"
        session[:admin] = true
        redirect_to :controller => "posts"
      else
        flash[:notice] = "Invalid user/password combination"
        redirect_to :controller => 'home'
      end
    end
  end
end